package org.plex.model.imp;

import java.util.Date;

import org.plex.core.imp.TaskACLImp;
import org.plex.model.Assignment;
import org.plex.model.TaskACL;

public class AssignmentImp implements Assignment
{

	private com.adobe.idp.taskmanager.dsc.client.query.Assignment assignment;

	public AssignmentImp(
			com.adobe.idp.taskmanager.dsc.client.query.Assignment assignment)
			throws NullPointerException
	{
		if (null == assignment)
		{
			throw new NullPointerException();
		}
		this.assignment = assignment;

	}

	public Date getAssignmentCreateTime()
	{
		// TODO Auto-generated method stub
		return assignment.getAssignmentCreateTime();
	}

	public long getAssignmentType()
	{
		// TODO Auto-generated method stub
		return assignment.getAssignmentType();
	}

	public Date getAssignmentUpdateTime()
	{
		// TODO Auto-generated method stub
		return assignment.getAssignmentUpdateTime();
	}

	public long getCurrentAssignmentId()
	{
		// TODO Auto-generated method stub
		return assignment.getCurrentAssignmentId();
	}

	public long getQueueId()
	{
		// TODO Auto-generated method stub
		return assignment.getQueueId();
	}

	public String getQueueOwner()
	{
		// TODO Auto-generated method stub
		return assignment.getQueueOwner();
	}

	public String getQueueOwnerId()
	{
		// TODO Auto-generated method stub
		return assignment.getQueueOwnerId();
	}

	public String getQueueTitle()
	{
		// TODO Auto-generated method stub
		return assignment.getQueueTitle();
	}

	public long getQueueType()
	{
		// TODO Auto-generated method stub
		return this.assignment.getQueueType();
	}

	public TaskACL getUserAcl()
	{
		if (this.assignment.getUserAcl() != null)
			return new TaskACLImp(this.assignment.getUserAcl());
		else
			return null;
	}

}
